﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using IChessEngine;

namespace ChessEngine.Basic
{
    public class ChsPawn : ChsPiece
    {
        public ChsPawn(EChsPieceColor _color)
            : base(EChsPieceType.PAWN, _color)
        { }
        public void MakeOnPassant()
        {
            onPassant = true;
        }
        public void UnMakeOnPassant()
        {
            onPassant = false;
        }
        public override IChsPiece Clone()
        {
            ChsPawn returned = new ChsPawn(Color);
            returned.onPassant = onPassant;
            return returned;
        }
    }
}
